﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {



            ////对象构造器
            ////命名参数
            //var people = new People(name: "付梦豪", id:10001)
            //{
            //    Id = 1001,
            //    Name = "付梦豪"
            //};


            ////var people = new People();
            ////people.Id = 1001;
            ////people.Name = "付梦豪";

            ////动态类型  匿名对象  JSON
            //dynamic my = new
            //{
            //    id="1001",
            //};
            //Console.WriteLine(my.id);

            //var str = people.ToString();
            //Console.WriteLine(str);

            //Student stu = new Student(100)
            //{
            //    Id=1000,
            //    Name="付梦豪",

            //};
            //stu.Study("C#");

            IFlyable man = new SuperMan();
            man.Fly();


            Console.ReadKey();
        }
    }
}
